package com.zxx.flowerstore.service.impl;

import com.zxx.flowerstore.service.LogService;
import com.zxx.flowerstore.utils.common.LogInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

/**
 * @ClassName LogServiceImpl
 * @Author Admin
 * @Date 2021/3/20 12:25
 * @Description LogServiceImpl
 * @Version 1.0
 */
@Service
public class LogServiceImpl implements LogService {

    @Autowired
    private MongoTemplate mongoTemplate;


    @Override
    public void saveLog(LogInfo logInfo) {
        this.mongoTemplate.save(logInfo);
    }
}
